package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 日报评论
 */
@Getter
@Setter
public class DailyComment extends BaseDomain{
    private User user;//用户

    private Long parentId;//父评论id

    private List<DailyComment> child = new ArrayList<>();//子评论集合

    private Daily daily;//日报信息

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;//创建时间

    private String content;//评论内容
}